SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 69250: The SAS® Web Application Server configuration fails with "No such file or directory error with decoder.sh script"

DetailsAboutRate It

If you install or upgrade to SAS® 9.4M7 (TS1M7) under the following conditions, the SAS Web Application Server configuration fails:

  • You use Rev. 940_22w08 or later. This number is the Ship Event.
  • The Korn shell (/bin/ksh) is not installed on the middle-tier machine.

In this scenario, the following error occurs:

An unexpected error occurred 

Also, the SAS-configuration-directory/Lev1/Logs/Configure/vfabrictcsvr_configure_date-time-stamp.log file contains the following error:

java.io.IOException: Cannot run program "/sas/config/Lev1/Web/WebAppServer/SASServer1_1/bin/decoder.sh" (in directory "/sas/config/Lev1/Web/WebAppServer/SASServer1_1/bin"): error=2, No such file or directory

The decoder.sh script uses Korn shell, and the #!/bin/ksh is the first line in this script.

Workarounds

There are two workarounds for this problem:

  • Install the Korn shell on the system. After you install Korn shell, click Retry in the SAS® Deployment Wizard or SAS® Deployment Manager error window.
  • Modify the first line of the decoder.sh script from "#!/bin/ksh" to "#!/bin/sh", eliminating the 'k'.

Updating the script file (the second bullet above) must be done in the SASHome and SASDepot directories. The update to the script in an existing server instance in the SAS-configuration-directory area might be overwritten the next time the SAS Deployment Wizard or SAS Deployment Manager is executed. Fixing this issue permanently requires updating the script within the <SASDepot> and the <SASHome> areas. Those two file locations are as follows:

<SASDepot>/products/cfgwizard_94###_prt_xx_sp0_1/Utilities/AppServer/Source/Config/vfabrictcsvr/bin/decoder.sh
<SASHome>/SASDeploymentManager/9.4/products/cfgwizard_94###_prt_xx_sp0_1/Utilities/AppServer/Source/Config/vfabrictcsvr/bin/decoder.sh

The tcruntime-ctl.sh script under SAS-configuration-directory/Levn/Web/WebAppServer/SASServerX_Y/bin/ also uses Korn Shell. The two file locations to modify this script are as follows:

<SASDepot>/products/cfgwizard_94###_prt_xx_sp0_1/Utilities/AppServer/Source/Config/vfabrictcsvr/bin/tcruntime-ctl.sh
<SASHome>/SASDeploymentManager/9.4/products/cfgwizard_94###_prt_xx_sp0_1/Utilities/AppServer/Source/Config/vfabrictcsvr/bin/tcruntime-ctl.sh

After the scripts are updated, click Retry in the SAS Deployment Wizard or SAS Deployment Manager error window.


Note: You do not have to modify the scripts if you install Korn Shell. You can find the Ship Event release number from your Software Order Confirmation Email, such as Rev. 940_21w17



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Web Application Server64-bit Enabled AIX9.469.479.4 TS1M79.4 TS1M8
64-bit Enabled Solaris9.469.479.4 TS1M79.4 TS1M8
HP-UX IPF9.469.479.4 TS1M79.4 TS1M8
Linux for x649.469.479.4 TS1M79.4 TS1M8
Solaris for x649.469.479.4 TS1M79.4 TS1M8
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.